package com.xiaoming.config;/*
package com.xiaoming.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

*/
/**
 * Swagger2配置
 * @blame xiaoming
 *//*

@Configuration
@EnableSwagger2
public class Swagger2Config {
    @Bean
    public Docket createRestApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo())
                .select()
               */
/* // api扫包范围
                .apis(RequestHandlerSelectors.basePackage("com.xiaoming.api"))*//*

                .paths(PathSelectors.any())
                .build();
    }

    */
/**
     * 创建api文档信息
     * title 文档标题
     * description 文档描述
     * termsOfServiceUrl 网址
     * version 版本号
     *
     * @return
     *//*

    private ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("xiaoming 微服务电商系统")
                .description("本文档描述了xiaoming 微服务电商系统接口定义")
//                .termsOfServiceUrl("http://www.xiaoming.com")
                 .contact(new Contact("xiaoming", "http://xiaoming.com",
                         "3093403587@qq.com"))
                .version("1.0")
                .build();
    }
}*/
